-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation block "Open on click": Inherit font style and font weight #40671
Conversation
When testing, I found that the letter casing is also not working, so I am going to add that. |
Size Change: +58 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Capture.on.2022-05-03.at.15-26-18.mp4
I took this for a spin and it tested well as per instructions.
I also tested without "Open on click" to check for regressions. I saw none.
Thank you for this quick fix 👏
…40671) * Inherit font style, font weight and text transform
I just cherry-picked this PR to the wp/6.0 branch to get it included in the next release: 66fb75b |
What?
Closes #40669
When the navigation block "Open on click" option is enabled, the menu item link is replaced with a button.
This pr assures that the typography Appearance and Letter case settings work when the option is enabled.
Why?
The font appearance of the menu item should be the same no matter if the "Open on click" option is enabled or not.
How?
Adds
font-style: inherit; font-weight: inherit; text-transform: inherit;
when the navigation item is a button (button.wp-block-navigation-item__content
).Testing Instructions
Make sure that you have a child page on your WordPress install, to test the page list with child pages.
Screenshots or screencast
Before:
After: